<!--************************************************************ -->
<!--* 文件创建日期：2010                                  * -->
<!--* 文件修改日期：			                                   * -->
<!--************************************************************ -->
<!--JSP初始化设置-->
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="com.infomanage.po.*" %>
<%@page import="com.infomanage.vo.*" %>
<%@page import="com.infomanage.service.tech.*"%>
<%  response.addDateHeader("Expires", 0);response.setHeader("Pragma","no-cache"); response.setHeader("Cache-Control","no-cache");%>
<%
	request.setCharacterEncoding("UTF-8");
	String itemId = request.getParameter("itemId");
    if(itemId == null) itemId = "";
    
    TechRescuelogItem item = TechRescueLogService.loadRescueLog(request, response, out);
    int teamLeaderId = -1;
    int deptId = -1;
    int arrivenum = 0;
    String timestamp = "";
    String teamleaderName = "";
    String deptName = "";
    String description = "";
    String detail = "";
    int willArrivenum = 0;
    if(item != null) {
    	TechRescuelog bean = item.getBean();
    	Department dept = item.getDept();
    	Person person = item.getTeamLeader();
    	arrivenum = bean.getArrivenum();
    	deptId = bean.getDeptId();
    	deptName = dept.getPath();
    	description = bean.getDesciption();
    	detail = bean.getDetail();
    	teamLeaderId = bean.getTeamleaderId();
    	timestamp = bean.getTimestamp();
    	willArrivenum = bean.getWillarrivenum();
    	teamleaderName = person.getName();
    } 
%>
<html>
<head>
	<title>矿山救护工作日志</title>
	<META HTTP-EQUIV="Pragma" CONTENT="no-cache">	
	<link href="../../css/table.css" rel="stylesheet" type="text/css">
</head>
<body  rightmargin="0" bottommargin="0" leftmargin="0" topmargin="0">
	<table class="dialogTable" cellpadding="0" cellspacing="0">
		<!-- 表头-->
		<tr class="dialogTableHeader">
			<td>矿山救护工作日志</td>
		</tr>
		<!-- 表数据-->
		<tr class="dialogTableContent">
			<td>
				<!-- 数据项 -->
				<table class="dataTable">
					<col width="30%">
					<col width="70%">
					<tr>
						<td class="field">
							日期
						</td>
						<td>
							<%=timestamp %>
						</td>
					</tr>
					<tr>
						<td class="field">
							队别
						</td>
						<td>
							<%=deptName %>
						</td>
					</tr>
					<tr>
						<td class="field">
							队长
						</td>
						<td>
							<%=teamleaderName %>
						</td>
					</tr>
					<tr>
						<td  class="field">
							应到人数
						</td>
						<td>
							<%=willArrivenum %>
						</td>
					</tr>
					<tr>
						<td class="field">
							实到人数
						</td>
						<td>
							<%=arrivenum %>
						</td>
					</tr>
					<tr>
						<td class="field" height="120px">
							学习/训练/工作/出动等情况
						</td>
						<td>
							<textarea style="width: 100%;height: 100%;background-color:#dfe8f6" readonly><%=detail %></textarea>
						</td>
					</tr>
					<tr >
						<td class="field" height="70px">
							备注
						</td>
						<td>
							<textarea style="width: 100%;height: 100%;background-color:#dfe8f6" readonly><%=description %></textarea>
						</td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td colspan="2" class="tableBtn">
				<span onclick="window.print();">打印</span>			
				<span onclick="window.close();">关闭</span>
			</td>
		</tr>
		<tr valign="top">
			<td colspan="2">
				&nbsp;
			</td>
		</tr>
	</table>
</body>
</html>